<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
<h3 align="center">退货单</h3>

<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
	<tr align="center">
		<th>序号</th>
		<th>入库日期</th>
		<th>入库员</th>
		
		<th>供应商</th>
		<th>订购单</th>
		<th>进货单</th>
		<th>退货单</th>
		
		<th>明细</th>
		<th>币种</th>
		<th>金额</th>
		<th>税率</th>
		<th>备注</th>
		<th>录入员</th>
		<th>{[$orderby]}</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+1`"]}
	{[assign var="t1" value="`$t1+$item.total`"]}
	<tr align="center">
		<td>{[$no]}</td>
		
		<td>{[$item.date]}</td>
		<td>{[$item.emp_t]}</td>
		
		<td>{[$item.supplier_t]}</td>
		<td>{[$item.purchase]}</td>
		<td>{[$item.receive]}</td>
		<td>{[$item.id]}</td>
		
		<td>{[$item.num_]}</td>
		<td>{[$item.purchase_x.currency]}</td>
		
		<td>{[$item.total]}</td>
		<td>{[$item.purchase_x.tax]}</td>
		
		<td>{[$item.content|truncate:21:"...":true]}</td>
		<td>{[$item.oper_t]}</td>

		<td>{[$item.orderby_x]}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td colspan="9">总计（大写）{[$item.purchase_x.currency_t]} {[$t1|rmb]}</td>
		<td>{[$t1|money]}</td>
		<td colspan="4"></td>
	</tr>
	<tr>
		<td colspan="14" valign="top" style="font-size:12px;">备注：<br/>
		<br/></td>	
	</tr>
</table>

</body>
</html>
